package myJs.myPkg.antdMobile

import slinky.core._
import slinky.core.annotations.react
import slinky.core.facade.ReactElement

import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport

/**
 * Created by yz on 7/2/2022
 */
@react object AMList extends ExternalComponent {

  case class Props(
                    header: js.UndefOr[String] = js.undefined,
                    mode: js.UndefOr[String] = js.undefined,
                  )

  @js.native
  @JSImport("antd-mobile", "List")
  object Component extends js.Object {

    val Item: js.Object = js.native

  }

  override val component = Component

  @react object Item extends ExternalComponent {
    case class Props(
                      extra: ReactElement
                    )

    override val component = Component.Item

  }

}
